package com.sharelords.demo.web.server;

import com.sharelords.spring.annotation.BizScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Description: 启动类
 * 需采用 @BizScan 注解式配置biz扫描路径，例如：@BizScan({"com.sharelords.demo.biz"})
 * 或者引入加载了 BizScannerConfigurer 的配置文件，例如：@ImportResource(locations = {"manual-config.xml"})
 *
 * @author: 千古龙少
 * @time: 2019/11/18 22:11
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.sharelords.demo.web.controller", "com.sharelords.demo.web.service", "com.sharelords.demo.biz", "com.sharelords.demo.facade"})
@MapperScan("com.sharelords.demo.core.dao")
@BizScan(basePackages = {"com.sharelords.demo.biz"}, remainJavaSrcFile = true, srcFilePath = "F://temp/")
public class DemoWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoWebApplication.class, args);
    }

}
